package com.kingyea.app.market.file.service;

import com.kingyea.app.market.file.bean.File;

import java.util.List;

/**
 * @author CXC
 * @version v1.0.0
 * @description File 接口
 * @date Created in 2018-03-22 16:52:24
 */
public interface FileService {

    /**
     * 删除
     *
     * @return
     */
    boolean delete(File file) throws Exception;

    /**
     * 列表
     *
     * @param file
     * @return
     */
    List<File> list(File file) throws Exception;

    /**
     * 添加
     *
     * @param file
     * @return
     */
    boolean save(File file) throws Exception;

    /**
     * 更新
     *
     * @param file
     * @return
     */
    boolean update(File file) throws Exception;
}
